package ex.j.h;

import java.util.Comparator;

public class Member implements Comparator<Member> {

	String name;
	int age;
	String inputDate;
		

	public Member(){}
	
	public Member(String name, int age, String date){
		super();
		this.name = name;
		this.age = age;
		this.inputDate = date;
	}
	
	
	@Override
	public int compare(Member arg0, Member arg1) {
		
		return arg1.getInputDate().compareTo(arg0.getInputDate());
	}



	public String getInputDate() {
		return inputDate;
	}



	public void setInputDate(String inputDate) {
		this.inputDate = inputDate;
	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public int getAge() {
		return age;
	}



	public void setAge(int age) {
		this.age = age;
	}
	
	
}
